package com.joey.cloud.psn.business.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.joey.cloud.communal.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 组织架构
 * </p>
 *
 * @author Joey
 * @since 2021-03-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="SysGroup对象", description="组织架构")
public class SysGroup extends BaseEntity implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "父级id")
    @TableField("parentId")
    private Integer parentId;

    @ApiModelProperty(value = "分组名称")
    @TableField("groupName")
    private String groupName;

    @ApiModelProperty(value = "分组标识")
    @TableField("groupKey")
    private String groupKey;

    @ApiModelProperty(value = "分组类别")
    @TableField("groupType")
    private Integer groupType;

    @ApiModelProperty(value = "序号")
    @TableField("sortNum")
    private Integer sortNum;


}
